package com.erp.erp_entitys.ProductMainInfo;

import java.io.Serializable;

/**
 * @author 
 * 产品主信息
 */
public class ProductMainInfoEntity implements Serializable {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 产品编码
     */
    private String code;

    /**
     * 中文名称
     */
    private String chinaName;

    /**
     * 英文名称
     */
    private String englishName;

    /**
     * 海关编码
     */
    private String hgCode;

    /**
     * 备注
     */
    private String remark;

    /**
     * 所属目录
     */
    private String cataCode;
    /**
     * 所属上级目录(path)
     */
    private String upCataCode;
    /**
     * 客户号
     */
    private String customerCode;

    /**
     * 规格编码
     */
    private String gecode;

    /**
     * 规格说明
     */
    private String ge;

    /**
     * 包装说明
     */
    private String bzsm;

    /**
     * 产品净重
     */
    private String cpjz;

    /**
     * 产品毛重
     */
    private String cpmz;
    /**
     * 规格的中文描述,用于在前端显示
     */
    private String chinaRemark;

    /**
     * 是否停用，0：停用，1：未停用
     */
    private Integer deactivateType;

    /**
     * 产品类型(1:成品 2:配件)
     */
    private Integer productType;

    /**
     * 单位
     */
    private String unit;

    public Integer getDeactivateType() {
        return deactivateType;
    }

    public void setDeactivateType(Integer deactivateType) {
        this.deactivateType = deactivateType;
    }

    public String getChinaRemark() {
        return chinaRemark;
    }

    public void setChinaRemark(String chinaRemark) {
        this.chinaRemark = chinaRemark;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getChinaName() {
        return chinaName;
    }

    public void setChinaName(String chinaName) {
        this.chinaName = chinaName;
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    public String getHgCode() {
        return hgCode;
    }

    public void setHgCode(String hgCode) {
        this.hgCode = hgCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCataCode() {
        return cataCode;
    }

    public void setCataCode(String cataCode) {
        this.cataCode = cataCode;
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public String getGecode() {
        return gecode;
    }

    public void setGecode(String gecode) {
        this.gecode = gecode;
    }

    public String getGe() {
        return ge;
    }

    public void setGe(String ge) {
        this.ge = ge;
    }

    public String getBzsm() {
        return bzsm;
    }

    public void setBzsm(String bzsm) {
        this.bzsm = bzsm;
    }

    public String getCpjz() {
        return cpjz;
    }

    public void setCpjz(String cpjz) {
        this.cpjz = cpjz;
    }

    public String getCpmz() {
        return cpmz;
    }

    public void setCpmz(String cpmz) {
        this.cpmz = cpmz;
    }

    public String getUpCataCode() {
        return upCataCode;
    }

    public void setUpCataCode(String upCataCode) {
        this.upCataCode = upCataCode;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductMainInfoEntity other = (ProductMainInfoEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getChinaName() == null ? other.getChinaName() == null : this.getChinaName().equals(other.getChinaName()))
            && (this.getEnglishName() == null ? other.getEnglishName() == null : this.getEnglishName().equals(other.getEnglishName()))
            && (this.getHgCode() == null ? other.getHgCode() == null : this.getHgCode().equals(other.getHgCode()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCataCode() == null ? other.getCataCode() == null : this.getCataCode().equals(other.getCataCode()))
            && (this.getCustomerCode() == null ? other.getCustomerCode() == null : this.getCustomerCode().equals(other.getCustomerCode()))
            && (this.getGecode() == null ? other.getGecode() == null : this.getGecode().equals(other.getGecode()))
            && (this.getGe() == null ? other.getGe() == null : this.getGe().equals(other.getGe()))
            && (this.getBzsm() == null ? other.getBzsm() == null : this.getBzsm().equals(other.getBzsm()))
            && (this.getCpjz() == null ? other.getCpjz() == null : this.getCpjz().equals(other.getCpjz()))
            && (this.getCpmz() == null ? other.getCpmz() == null : this.getCpmz().equals(other.getCpmz()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getChinaName() == null) ? 0 : getChinaName().hashCode());
        result = prime * result + ((getEnglishName() == null) ? 0 : getEnglishName().hashCode());
        result = prime * result + ((getHgCode() == null) ? 0 : getHgCode().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCataCode() == null) ? 0 : getCataCode().hashCode());
        result = prime * result + ((getCustomerCode() == null) ? 0 : getCustomerCode().hashCode());
        result = prime * result + ((getGecode() == null) ? 0 : getGecode().hashCode());
        result = prime * result + ((getGe() == null) ? 0 : getGe().hashCode());
        result = prime * result + ((getBzsm() == null) ? 0 : getBzsm().hashCode());
        result = prime * result + ((getCpjz() == null) ? 0 : getCpjz().hashCode());
        result = prime * result + ((getCpmz() == null) ? 0 : getCpmz().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", chinaName=").append(chinaName);
        sb.append(", englishName=").append(englishName);
        sb.append(", hgCode=").append(hgCode);
        sb.append(", remark=").append(remark);
        sb.append(", cataCode=").append(cataCode);
        sb.append(", customerCode=").append(customerCode);
        sb.append(", gecode=").append(gecode);
        sb.append(", ge=").append(ge);
        sb.append(", bzsm=").append(bzsm);
        sb.append(", cpjz=").append(cpjz);
        sb.append(", cpmz=").append(cpmz);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}